package com.itheima.myfile;

import java.io.File;
import java.io.IOException;

public class Demo2 {
    public static void main(String[] args) throws IOException {
        //method1();
        //method2();

    }

    private static void method2() throws IOException {
        File file1 = new File("day12_file&字节流\\a.txt");
        boolean reult1 = file1.createNewFile();
        System.out.println("reult1 = " + reult1);
    }

    private static void method1() throws IOException {
        File file = new File("D:\\myapp\\a.txt");
        boolean result = file.createNewFile();
        System.out.println("result = " + result);
    }
}
